import { reactive } from 'vue'
export const rules = reactive({
  name: [
    {
      required: true,
      message: '请输入账户名称',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{5,10}$/,
      message: '账户名称长度在5到10之间',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '请输入密码',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{3,}$/,
      message: '密码长度不能小于3',
      trigger: 'blur'
    }
  ]
})
